package com.settlement.system.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import com.alibaba.excel.annotation.ExcelProperty;
        import java.math.BigDecimal;
        import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

/**
* <p>
* OMS原始售后单明细表导入VO
* </p>
*
* @author huangrensen
* @since 2024-04-23
*/
@Schema
@Data
public class OriginalOmsReturnOrderImportVo implements Serializable {
    @ExcelProperty(value = "退货编号")
    private String returnNo;
    @ExcelProperty(value = "店铺ID")
    private String storeId;
    @ExcelProperty(value = "关联订单号")
    private String linkNo;
    @ExcelProperty(value = "退单交易号")
    private String returnTradeNo;
    @ExcelProperty(value = "原始交易号")
    private String originalNo;
    @ExcelProperty(value = "退货类型")
    private String returnType;
    @ExcelProperty(value = "订单状态")
    private String status;
    @ExcelProperty(value = "退货创建时间")
    private String returnTime;
    @ExcelProperty(value = "入库时间")
    private String storageTime;
    @ExcelProperty(value = "品牌")
    private String brand;
    @ExcelProperty(value = "商品名称")
    private String productName;
    @ExcelProperty(value = "条码")
    private String productCode;
    @ExcelProperty(value = "数量")
    private String qty;
    @ExcelProperty(value = "实退金额小计")
    private String returnAmount;

    public static Map<String, String> getKeyMap(){
        Map<String, String> map = new HashMap<>();
        map.put("唯一标识", "pId");
        map.put("退单编号", "returnNo");
        map.put("店铺", "storeName");
        map.put("关联订单号", "linkNo");
        map.put("退单交易号", "returnTradeNo");
        map.put("原始交易号", "originalNo");
        map.put("退单类型", "returnType");
        map.put("退单状态", "status");
        map.put("订单支付时间", "purchasedTime");
        map.put("退货创建时间", "returnTime");
        map.put("入库时间", "storageTime");
        map.put("品牌", "brand");
        map.put("商品名称", "productName");
        map.put("条码", "productCode");
        map.put("数量", "qty");
        map.put("实退金额小计", "returnAmount");
        map.put("平台退单编号", "refundCode");
        map.put("PO", "po");
        map.put("关联原始交易号", "linkOriginalNo");
        map.put("ERP单号", "erpNo");
        return map;
    }
}
